package com.yanwq.sayhi;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.yanwq.sayhi.controller.chat.service.ChatService;
import com.yanwq.sayhi.controller.user.UserMgr;

public class SplashActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_splash);

        if (UserMgr.get() != null) {
            Intent intent = new Intent(this, MainActivity.class);
            startActivity(intent);
            //ChatService.start(this);
        }
        finish();
    }
}
